home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.unix.programmer,comp.lang.c
- Subject: Re: Applying file masks in UNIX using C/C++
- Date: 6 Apr 1996 21:04:24 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4k7icoINNp4c@keats.ugrad.cs.ubc.ca>
- References: <31618AFE.5476@netrover.com> <m1g2akuyph.fsf@pippin.jblhome.ping.dk>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <m1g2akuyph.fsf@pippin.jblhome.ping.dk>,
- Jacob Lorensen <jacob@jblhome.ping.dk> wrote:
- >>>>>> "Stephane" == Stephane Charette <charrick@netrover.com> writes:
- >
- > Stephane> This is a long shot...but...does anyone know of the
- > Stephane> existence of public domain C/C++ code which will apply a
- > Stephane> file mask to an existing filename and return a TRUE or
- > Stephane> FALSE response?
- >
- >How about this?
- >
- > WILDMAT(3) WILDMAT(3)
- >
- >
- > NAME
- > wildmat - perform shell-style wildcard matching
- >
- > SYNOPSIS
- > int
- > wildmat(text, pattern)
- > char *text;
- > char *pattern;
-
- FYI, there is a POSIX.2 standard function called glob() for doing this.
- I've never even heard of wildmat! I have checked three different major UNIX
- OS's and none of them have it in their man page roster.
-
- glob() and globfree() are also defined by the X/Open Portability Guide 4
- (XPG4).
- --
-
-